package com.ef.service;

import java.util.List;

import com.ef.domain.PTE;
import com.ef.domain.Team;
import com.ef.util.CustomExample;
import com.ef.util.PaginationSupport;

public interface PTEService extends BaseService {

	public PaginationSupport<PTE> findByExample(
			CustomExample<PTE> example, int startIndex, int pageSize);
	
	public void saveOrUpdate(PTE entity);
	
	public void delete(PTE entity);
	
	public PTE findById(Long id);
	
	public List<PTE> findALLVaild();
	
	public List<PTE> findALLVaildByTeam(Team team);
	
	public List<PTE> findByAnything(String qitem,int max);
	
	public List<PTE> findByAnythingWithTeam(String qitem, int max,Team team);
	
	public PTE findByWorkNo(String workNo);
	
	public PTE findByDuplicatePte(PTE pte);
}
